﻿#pragma once


#include <iostream>
#include <Windows.h>
#include <memory>
#include "Graphics.h"


class MyWindow
{
public:
	MyWindow(int width, int height, const std::string& title);

	MyWindow(const MyWindow&) = delete;
	MyWindow& operator=(const MyWindow&) = delete;

	~MyWindow();

	Graphics& GetGraphics();

public:

	void Init();
	LRESULT  HandleMsg(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
private:

	int _width;
	int _height;
	std::string _title;

	HINSTANCE _hInstance;
	HWND _hWnd;
	std::unique_ptr<Graphics> m_Graphics;

};

